<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="com.wing.ext.domain.Information"%>
<%@ include file="/pub/includ.jsp"%>
<%
	Information info = (Information)request.getAttribute("information");	
%>
<script type="text/javascript">
	  var save = function(){
			document.getElementById("content").value=KE.html("content");
			var flag = "failure";
			var options = {
				type: 'POST',
				async: false,
				dataType: 'content-type',
				success: function(msg) {
					flag = msg;
				}
			}
			$('#informationform').ajaxSubmit(options);
			return flag;
		}
</script>
<script charset="utf-8" src="/editor/kindeditor.js"></script>
<form id="informationform"  action="<%=path%>/ext/information/save" method="post" target="_self">
<table><tr><td height="2px"></td></tr></table>
<table align="center" border="0" cellpadding="0" cellspacing="1" class="table_nbw" >
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">访问数量</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="count" name="count" value="${information.count}"></td>
	</tr>
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">排序号</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="orderno" name="orderno" value="${information.orderno}"></td>
	</tr>
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">置顶</td>
		<td align="left" style="background-color:fff">&nbsp;<input type="checkbox" id="totop" name="totop" <%if(info.getTotop()!=null && info.getTotop()==1){ %> checked="checked"<%} %> value="1"></td>
	</tr>
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">置顶首页</td>
		<td align="left" style="background-color:fff">&nbsp;<input type="checkbox" id="tohome" name="tohome" <%if(info.getTohome()!=null && info.getTohome()==1){ %> checked="checked"<%} %>value="1"></td>
	</tr>
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">标题</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="title" name="title" value="${information.title}"></td>
	</tr>
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">内容</td>
		<td align="left" style="background-color:fff">&nbsp;
			<textarea class="textfiled_nbw" rows="5" name="content" id="content" cols="40">${information.content}</textarea>
			<script>
		    	KE.show({
					id : 'content',
					urlType:'absolute',
					imageUploadJson : '<%=request.getContextPath() %>/res/upload',
					fileManagerJson : '<%=request.getContextPath() %>/res/show',
					allowFileManager : true
				});
		    </script>
		</td>
	</tr>
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">分类</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="type_id" name="type_id" value="${information.type_id}"></td>
	</tr>
	<tr >
		<td align="right" width="30%"  style="background-color:fff;height:25px;">区域</td>
		<td align="left" style="background-color:fff">&nbsp;<input class="textfiled_nbw"  type="text" id="scope" name="scope" value="${information.scope}"></td>
	</tr>
</table>
<table width="100%">
	<tr>
		<td align="center">
			<input type="hidden" name="site_id" value="yblsite01"/>
			<input type="hidden" name="type_id2" value="${information.type_id2}"/>
			<input type=hidden name="status" value="${information.status}" />
			<input type=hidden name="creator" value="${information.creator}" />
			<input type=hidden name="count" value="${information.count}" />
			<input type=hidden name="pid" value="${information.pid}" />
			<input type=hidden name="id" value="${information.id}" />
			<input type=hidden name="createtimev" value="${information.createtimev}" />
		</td>
	</tr>
</table>
</form>


